package org.willthink.dao.notice.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.willthink.dao.notice.NoticeDAO;
import org.willthink.vo.notice.NoticeFormVO;

public class NoticeDAOImpl extends SqlMapClientDaoSupport implements NoticeDAO {

	@SuppressWarnings("unchecked")
	@Override
	public List<Map<String, String>> getNoticeList(String pageNo) throws SQLException {
		
		return getSqlMapClient().queryForList("notice.noticeList", pageNo);
	}

	@Override
	public void insertNotice(NoticeFormVO vo) throws SQLException {
		getSqlMapClient().insert("notice.insert", vo);
	}

}
